import configs

class Article(object):

    def __init__(self, **article):
        self.id = article['id']


class Question(object):

    def __init__(self, **question):
        self.id = question['id']


class Account(object):
    '''
    Zhihu login user account for data access
    '''
    def __init__(self, **account):
        # Parameters for authorization
        self.authorization = account['authorization']
        self.udid = account['udid']

        self.access_times = 0  # Access times to Zhihu server for this account
        self.headers = configs.NC_HEADERS  # Https headers for all accesses to Zhihu server
        self.headers['Authorization'] = self.authorization
        self.headers['x-udid'] = self.udid